home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4235 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: tank.news.pipex.net!pipex!demon!centa.demon.co.uk
  2. From: pjt@centa.demon.co.uk (Paul Toland)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.nt.misc,comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.programmer.win32
  4. Subject: MFC Extension DLL creation - different in VC++4?
  5. Date: Mon, 29 Jan 1996 13:40:48 GMT
  6. Organization: Cursa Systems Ltd
  7. Message-ID: <822894063.29249@centa.demon.co.uk>
  8. NNTP-Posting-Host: centa.demon.co.uk
  9. X-NNTP-Posting-Host: centa.demon.co.uk
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Using Microsoft Visual C++ V4.00 on NT3.51
  13.  
  14. I Created a simple project with a single App Wizard generated 
  15. Dialog based MFC EXE, and a single App Wizard generated 
  16. MFC Extension DLL as a sub-project of the EXE.
  17.  
  18. The DLL had a dialog defined in it, with a Class Wizard generated 
  19. class. An instance of this dialog was created in the EXE:
  20.     CNoddyDialog dlg;
  21.     dlg.DoModal();
  22.  
  23. This resulted in no Dialog, and an Access violation exception, 
  24. as the dialog template resource could not be found. Similar results 
  25. where found with String resources in the DLL.
  26.  
  27. The V4.00 App Wizard seems to generate a totally different type of 
  28. 'DLL', defined as CWinApp, which does not appear in the main App's DLL
  29.  
  30. list (as can be seen using DLLHusk example code) and hence is not 
  31. searched for resources.
  32.  
  33. If the DLL is defined using the 'old' method with 'C' type DllMain 
  34. and InitDLL routines, then it works as before.
  35.  
  36.  
  37. How do I expose my DLL resource using the the new App Wizard?
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.